2008-06-20 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkwidget.c (gtk_widget_get_allocation): Initialize the
allocation to avoid compiler warnings
svn path=/trunk/; revision=20647
* gtk/gtk.symbols: Add all newly added accessors so abicheck.sh passes
- * gtk/gtkwidget.c (gtk_widget_get_allocation): Remove unused variable
- and check if the widget is a GtkWidget subclass, not the uninitialized
- allocation.
+ * gtk/gtkwidget.c (gtk_widget_get_allocation): Initialize the
+ allocation to avoid compiler warnings
2008-06-20 Michael Natterer <mitch@imendio.com>
GtkAllocation
gtk_widget_get_allocation (GtkWidget *widget)
{
- g_return_val_if_fail (GTK_IS_WIDGET (widget), widget);
+ static GtkAllocation allocation = { 0 };
+ g_return_val_if_fail (GTK_IS_WIDGET (widget), allocation);
return widget->allocation;
}